﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MainWap.Master" Inherits="System.Web.Mvc.ViewPage<LangMauViet.Models.Entity.Video>" %>

<%@ Import Namespace="LangMauViet.Classes.Helper" %>
<%@ Import Namespace="LangMauViet.Models.Entity" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    langmauviet.vn - <%=Model.Name %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%--    <% var video = (Video)ViewData["DetailVideo"]; %>
    <div class="wap_content_image_detail">
        <center>
            <video id="example_video_1" class="video-js vjs-default-skin" controls preload="none"
                width="80%" height="400" poster="http://vipmobi.net:7001/mobile/download?v=1&w=150&h=150&id=<%=video.Icon%>"
                data-setup="{}">
                <source src="<%=video.Url%>" type='video/mp4' />
 
            </video>
            <div class="left clear" style="width: 100%; margin-top: 20px;">
                <%=video.Name %>
            </div>
        </center>
        <div class="wap_couldyoulike clear">
        </div>
    </div>--%>
    <% var video = (Video)ViewData["DetailVideo"];
       var hotVideo = (List<HotItem>)ViewData["hotVideo"]; %>
    <div id="searchbox">
        <div class="keyword">
            <span class="hot">Chủ đề HOT</span>:
            <% if (!ReferenceEquals(hotVideo, null))
               {
                   for (int i = 0; i < hotVideo.Count; i++)
                   {
                       if (i < hotVideo.Count - 1)
                       { %>
            <a href="/Video/Chi-tiet/<%= hotVideo[i].VideoId %>/<%=UIHelper.convertToUnSign(hotVideo[i].Name) %>">
                <%= hotVideo[i].Name%></a> <span style="font-size: 12px;">|</span>
            <% }
                       else
                       {%>
            <a href="/Video/Chi-tiet/<%= hotVideo[i].VideoId %>/<%=UIHelper.convertToUnSign(hotVideo[i].Name) %>">
                <%= hotVideo[i].Name%></a>
            <%}
                   }
               }%>
        </div>
    </div>
    <div class="clear">
    </div>

    <div id="content">
        <h2>
            <span>
                <%=video.Name %></span></h2>
        <div class="detail">
            <!-- Form dang nh?p cho thu� bao ngo?i m?ng khi h? d� dang k� xong -->
            <div class="wap_content_image_detail clip-detail">
                <center>
                    <video id="example_video_1" class="video-js vjs-default-skin" controls preload="none"
                        width="80%" height="400" poster="http://vipmobi.net:7001/mobile/download?v=1&w=150&h=150&id=<%=video.Icon%>"
                        data-setup="{}">
                        <source src="<%=video.Url%>" type='video/mp4' />
 
                    </video>
                    
                </center>
                <div class="wap_couldyoulike clear">
                </div>
            </div>
            <div class="clearfix">
            </div>
        </div>
        <h2>
            <span>
                <img src="/CSS/images/related_icon.gif">
                &nbsp;Video HOT</span></h2>
        <%
            var lVideoHost = (List<Video>)ViewData["listVideoHost"];
        %>
        <div class="v-list">
            <% if (!ReferenceEquals(lVideoHost, null))
               {
                   foreach (Video v in lVideoHost)
                   { %>
            <div class="v-item ">
                <table>
                    <tbody>
                        <tr valign="top">
                            <td class="left">
                                <a href="/Video/Chi-tiet/<%= v.VideoId %>/<%=UIHelper.convertToUnSign(v.Name) %>">
                                    <img alt="<%= v.Name %>" src="http://vipmobi.net:7001/mobile/download?v=1&w=250&id=<%= v.Icon %>">
                                    <span class="duration">11:48 </span></a>
                            </td>
                            <td class="right">
                                <div class="title">
                                    <a href="/Video/Chi-tiet/<%= v.VideoId %>/<%=UIHelper.convertToUnSign(v.Name) %>">
                                        <%= v.Name %>
                                    </a>
                                </div>
                                <%--<div class="subtitle">
                                    <span>4 Lượt nghe </span>
                                    <div class="clearfix">
                                    </div>
                                    <span>
                                        <!--								<img src="/themes/avideo_v2/images/icon_streaming.gif"/> -->
                                        <a href="/Video/Chi-tiet/<%= v.VideoId %>/<%=UIHelper.convertToUnSign(v.Name) %>">(Nghe/3000d) </a></span>
                                </div>--%>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <% }
               } %>
        </div>
        <div class="clearfix">
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="metaheader" runat="server">
</asp:Content>
